package com.community.mapper;

import com.community.pojo.Consumer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
public interface ConsumerMapper extends BaseMapper<Consumer> {
    /**
     *
     * @param consumer
     * @return
     */
    List<Consumer> queryComsAll(Consumer consumer);

    /**
     *查询昵称和用户名是否重复
     * @param nickname
     * @return
     */
    String selConsumerCount(String nickname);
}
